const app = getApp()

Page({
  data: {
		musicList: []
  },

  onLoad(options) {
		const playHistory = wx.getStorageSync(app.globalData.openid)
		if (playHistory.length === 0) {
			wx.showModal({
				title: '播放历史为空',
				content: '',
			})
		} else {
			// storage 里面存储的 musiclist 替换成为播放历史 playHistory
			wx.setStorage({
				key: 'musiclist',
				data: playHistory,
			})
			this.setData({
				musicList: playHistory
			})
		}
  },

  onShareAppMessage: function () {

  }
})